﻿Ext.override(NExt.UI.Edit.Base.AbstractEditPresenter, {
    getCurrentModel: Ext.emptyFn,

    setCurrentModel: Ext.emptyFn,

    getEditingType: function() {
        return this.editingType;
    },

    setEditingType: function(editingType) {
        this.editingType = editingType;
    },

    getTitle: function(model, editingType) {
        return editingType;
    },

    initializeTitle: function(model, editingType) {
        this.title = this.getTitle(model, editingType);
    },

    showPresenter: function(model, editingType) {
        this.initializeTitle(model, editingType);
        this.initializeModel(model, editingType);
        this.setEditingType(editingType);
        this.fireShow();
        this.setCurrentModel(model);
    },

    initializeModel: Ext.emptyFn
});
